<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
    <!--vue绑定事件，点击事件-->
    <button v-on:click="search()">查询</button>

    <!--vue绑定事件简写-->
    <button @click="search()">查询1</button>
    <button @click="f1()">查询2</button>
</div>

<script src="vue.min.js"></script>
<script>
    new Vue({
        el: '#app',
        data: {
            searchMap: {
                keyWord: '尚硅谷'
            },
            result: {}
        },
        methods: {
            search() {
                console.log('search')
            },
            f1(){
                console.log('111231')
            }

        }


    })
</script>
</body>
</html>